import post2Portal from 'src/api/common'

export const getProblem = (data) => {
  let params = {
    api: '/sys/faq/list',
    methods: 'GET',
    data: data
  }
  return post2Portal(params);
};

export const addProblem = (data) => {
  let params = {
    api: '/sys/faq/add',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};


export const removeProblem = (data) => {
  let params = {
    api: '/sys/faq/batch/remove',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};

export const updateProblem = (data) => {
  let params = {
    api: '/sys/faq/update',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};
